import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: cjc
 * Date: 2025-03-04
 * Time: 19:24
 */
public class Test {
    public static void main(String[] args) {
        int[] arr = {1, 23, 4, 5};
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
        System.out.println();
        for (int x : arr) {
            System.out.print(x + " ");
        }
        String[] arr4 = new String[]{"hangman", "lisi", "wang"};
        String[] arr5 = new String[4];
        int[] array = {1, 23, 4, 5};
        for (int x : array) {
            System.out.print(x + " ");
        }
        System.out.println();
        System.out.println(Arrays.toString(array));
        int[] array1 = new int[3];
        array1[0] = 10;
        array1[1] = 20;
        array1[2] = 30;
        int[] array2 = new int[]{1, 2, 3, 4, 5};
        array2[0] = 100;
        array2[1] = 200;
        array1 = array2;
        array1[2] = 300;
        array1[3] = 400;
        array2[4] = 500;
        for (int i = 0; i < array2.length; i++) {
            System.out.println(array2[i]);
        }
    }
}
